<template>
  <div>
    <!-- 设备管理 -->
    <div v-show="show == false">
      <deTable></deTable>
    </div>
    <div v-show="show == true">
      <edit></edit>
    </div>
  </div>
</template>

<script setup>
import edit from "./edit/index.vue";
import deTable from "./table/index.vue";
import { ref, onBeforeMount } from "vue";
import mitts from "@/utils/bus.js";

const show = ref(false);

onBeforeMount(() => {
  mitts.on("isShow", (e) => {
    show.value = e;
  });
});
</script>

<style lang="less" scoped></style>
